<div class="paging">
	<ul>
		<li><a href="<?php echo $url;?>1.html"><< Trang đầu</a></li>
		<?php 
			if($result['current']==1)
				echo '<li><span class="current">< Trang sau </span></li><li>|</li>';
			else
				echo '<li><a href="'.$url.$result['previous'].'.html">< Trang sau</a></li> <li>|</li> ';
		?>
		<?php 
			if($result['current']>1)
			{
				?>
				<li><a href="<?php echo $url;?><?php echo $result['current']-1?>.html"><?php echo $result['current']-1;?></a></li> <li>|</li> 
				<?php 
			}
		?>
		<li><span class="current"><?php echo $result['current'];?></span></li>
		<?php if(($result['current']>=1)&&($result['last']>$result['current']))
			{
				?>
				 <li>|</li> <li><a href="<?php echo $url;?><?php echo $result['current']+1?>.html"><?php echo $result['current']+1;?></a></li>
				<?php 
			}
		?>
		<?php 
			if($result['current']==$result['last'])
				echo '<li>|</li> <li><span class="current"> Trang tiếp > </span></li>';
			else
				echo '<li>|</li> <li><a href="'.$url.$result['next'].'.html">Trang tiếp ></a></li>';
		?>
		<li><a href="<?php echo $url;?><?php echo $result['last']?>.html">Trang cuối >></a></li>
	</ul>
</div>